package Demo1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 34255
 * Date: 2024-05-23
 * Time: 19:44
 */
public class Test {
    public static void main(String[] args) throws CloneNotSupportedException {
        Student stu[] = new Student[10];
        stu[0] = new Student("陈达峰",20);
        stu[1] = (Student)stu[0].clone();

        for (int i = 0; i < stu.length; i++) {
            if(stu[i] == null){
                break;
            }else{
                System.out.println(stu[i].toString());
            }
        }
    }
}
